package com.ximcontroller.views;
import processing.core.PApplet;

public class XIMLargeScreen {

	PApplet p;

	XIMSingleScreen[] screens; 
	int xPos = 0;
	int yPos = 100;
	int widthSize = 200;
	int heightSize = 100;
	int xOffset = 0;
	int yOffset = 1;

	public XIMLargeScreen(PApplet p) {

		this.p = p;

		this.screens = new XIMSingleScreen[4];

		for (int i = 0; i < 4; i++) {
			screens[i] = new XIMSingleScreen(p, (xPos + xOffset),
					(yPos + yOffset) * i, widthSize, heightSize);
		}

		initialize(); 
	}

	public void initialize() {

	}

	public void calculate() {

		for (int i = 0; i < 4; i++) {
			screens[i].calculate();

		}

	}

	public void render() {

		for (int i = 0; i < 4; i++) {
			screens[i].render();

		}

	}

}
